#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int* singleNumber(int* nums, int numsSize, int* returnSize) 
{
    int* ans = (int*)calloc(2, sizeof(int));
    int i = 0;
    int tmp = 0;
    for (i = 0; i < numsSize; i++)
    {
        tmp ^= nums[i];
    }
    int pos = 0;
    for (i = 0; i < 32; i++)
    {
        if (((tmp >> i) & 1) == 1)
        {
            pos = i;
            break;
        }
    }
    for (i = 0; i < numsSize; i++)
    {
        if (((nums[i] >> pos) & 1) == 1)
        {
            ans[0] ^= nums[i];
        }
        else
        {
            ans[1] ^= nums[i];
        }
    }
    *returnSize = 2;
    return ans;
}
int main()
{
    return 0;
}